var express = require('express');
var router = express.Router();
var captchas = require('../handler/captchas/captcha.js');
const loginInfo = require('../handler/logins/login.js')
/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

// GET 验证码URL  
router.get('/captchas', captchas.getCaptcha);

// 用户登入
router.post('/login', loginInfo.postUserLogin);

module.exports = router;
